import styled from 'styled-components'
import img from '@/static/images/all.png'
import msgGif from '@/static/msg.gif'
import back from '@/static/images/icon-bar.png'
import search from '@/static/images/search.png'
import approvalIcon from '@/static/images/approval_icon.png'
import approvalLogIcon from '@/static/images/approvalLog_icon.png'
import operateLogIcon from '@/static/images/operateLog_icon.png'
import alarmIcon from '@/static/images/icon_alarm.png'
import setIcon from '@/static/images/set_icon.png'
import userIcon from '@/static/images/user_icon.png'
import copy from '@/static/images/icon-copy.png'

export const Icon = styled.span`
	display: inline-block;
	background-image: url(${img});
	background-repeat: no-repeat;
	cursor: pointer;
`
export const IconGif = styled.span`
	display: inline-block;
	background-image: url(${msgGif});
	background-repeat: no-repeat;
	cursor: pointer;
`
export const BackIcon = styled.span`
	display: inline-block;
	background-image: url(${back});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: 0 0;
	width: 30px;
	height: 30px;
	&:hover {
		background-position: -30px 0;
	}
	&:active {
		background-position: -60px 0;
	}
`

export const SearchIcon = styled.span`
	display: inline-block;
	background-image: url(${search});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: 0 0;
	width: 30px;
	height: 30px;
	&:hover {
		background-position: -30px 0;
	}
	&:active {
		background-position: -60px 0;
	}
`

export const ApprovalIcon = styled.span`
	display: inline-block;
	background-image: url(${approvalIcon});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: 0 0;
	width: 18px;
	height: 18px;
	&:hover {
		background-position: -18px 0;
	}
	&:active {
		background-position: -18px 0;
	}
`

export const ApprovalLogIcon = styled.span`
	display: inline-block;
	background-image: url(${approvalLogIcon});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: 0 0;
	width: 18px;
	height: 18px;
	&:hover {
		background-position: -18px 0;
	}
	&:active {
		background-position: -18px 0;
	}
`
export const OperateLogIcon = styled.span`
	display: inline-block;
	background-image: url(${operateLogIcon});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: 0 0;
	width: 18px;
	height: 18px;
	&:hover {
		background-position: -18px 0;
	}
	&:active {
		background-position: -18px 0;
	}
`

export const AlarmIcon = styled.span`
	display: inline-block;
	background-image: url(${alarmIcon});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: 0 0;
	width: 18px;
	height: 18px;
	&:hover {
		background-position: -18px 0;
	}
	&:active {
		background-position: -18px 0;
	}
`
export const SetIcon = styled.span`
	display: inline-block;
	background-image: url(${setIcon});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: 0 0;
	width: 18px;
	height: 18px;
	&:hover {
		background-position: -18px 0;
	}
	&:active {
		background-position: -18px 0;
	}
`
export const UserIcon = styled.span`
	display: inline-block;
	background-image: url(${userIcon});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: 0 0;
	width: 18px;
	height: 18px;
	&:hover {
		background-position: -18px 0;
	}
	&:active {
		background-position: -18px 0;
	}
`
export const CopyIcon = styled.span`
	display: inline-block;
	background-image: url(${copy});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: 0 0;
	width: 30px;
	height: 30px;
	&:hover {
		background-position: -30px 0;
	}
	&:active {
		background-position: -60px 0;
	}
`
export const AddIcon = styled.span`
	display: inline-block;
	background-image: url(${img});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: -120px -365px;
	width: 30px;
	height: 30px;
	&:hover {
		background-position: -150px -365px;
	}
	&:active {
		background-position: -150px -365px;
	}
`

export const CloseTabIcon = styled.span`
	display: inline-block;
	background-image: url(${img});
	background-repeat: no-repeat;
	cursor: pointer;
	background-position: -67px -2131px;
	width: 18px;
	height: 18px;
	&:hover {
		background-position: -85px -2131px;
	}
	&:active {
		background-position: -85px -2131px;
	}
`
